package com.chhuang.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @TableName ch_role
 * @ClassName ChRole
 * @Description ch_role实体类(ChRole)
 * @Author Darren Huang
 * @Date 2023-01-06 22:40:20
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ToString
@TableName(value = "ch_role")
@ApiModel(value = "ChRole对象", description = "ChRole对象，用来对应数据库表ch_role")
public class ChRole extends Model<ChRole> implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = -75964357197195976L;

    /**
     * 角色编号
     */
    @TableId(value = "role_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "角色编号")
    private String roleId;
    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    @ApiModelProperty(value = "角色名称")
    private String roleName;
    /**
     * 说明
     */
    @TableField(value = "illustrate")
    @ApiModelProperty(value = "说明")
    private String illustrate;
    /**
     * 序号
     */
    @TableField(value = "role_order")
    @ApiModelProperty(value = "序号")
    private Integer roleOrder;
    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
